home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / g_man / cat3 / OpenGL-ftn / fglviewport.z / fglviewport
Encoding:
Text File  |  2001-04-17  |  4.4 KB  |  139 lines

  1.  
  2.  
  3.  
  4. ffffggggllllVVVViiiieeeewwwwppppoooorrrrtttt((((3333GGGG))))                OOOOppppeeeennnnGGGGLLLL RRRReeeeffffeeeerrrreeeennnncccceeee                ffffggggllllVVVViiiieeeewwwwppppoooorrrrtttt((((3333GGGG))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      ffffggggllllVVVViiiieeeewwwwppppoooorrrrtttt - set the viewport
  10.  
  11.  
  12. FFFFOOOORRRRTTTTRRRRAAAANNNN SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN
  13.      SUBROUTINE ffffggggllllVVVViiiieeeewwwwppppoooorrrrtttt( INTEGER*4 _x,
  14.                              INTEGER*4 _y,
  15.                              INTEGER*4 _w_i_d_t_h,
  16.                              INTEGER*4 _h_e_i_g_h_t )
  17.  
  18.  
  19. PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS
  20.      _x, _y Specify the lower left corner of the viewport rectangle, in pixels.
  21.           The initial value is (0,0).
  22.  
  23.      _w_i_d_t_h, _h_e_i_g_h_t
  24.           Specify the width and height of the viewport.  When a GL context is
  25.           first attached to a window, _w_i_d_t_h and _h_e_i_g_h_t are set to the
  26.           dimensions of that window.
  27.  
  28. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  29.      ffffggggllllVVVViiiieeeewwwwppppoooorrrrtttt specifies the affine transformation of x and y from
  30.      normalized device coordinates to window coordinates.  Let (x  , y  ) be
  31.                                                                  nd   nd
  32.      normalized device coordinates.  Then the window coordinates (x , y ) are
  33.                                                                    w   w
  34.      computed as follows:
  35.  
  36.                                            (    width_____)
  37.                              x  = (x   + 1)        + x
  38.                               w     nd     (  2  )
  39.  
  40.                                           (    height______)
  41.                             y  = (y   + 1)         + y
  42.                              w     nd     (  2   )
  43.  
  44.      Viewport width and height are silently clamped to a range that depends on
  45.      the implementation.  To query this range, call ffffggggllllGGGGeeeetttt with argument
  46.      GGGGLLLL____MMMMAAAAXXXX____VVVVIIIIEEEEWWWWPPPPOOOORRRRTTTT____DDDDIIIIMMMMSSSS.
  47.  
  48. EEEERRRRRRRROOOORRRRSSSS
  49.      GGGGLLLL____IIIINNNNVVVVAAAALLLLIIIIDDDD____VVVVAAAALLLLUUUUEEEE is generated if either _w_i_d_t_h or _h_e_i_g_h_t is negative.
  50.  
  51.      GGGGLLLL____IIIINNNNVVVVAAAALLLLIIIIDDDD____OOOOPPPPEEEERRRRAAAATTTTIIIIOOOONNNN is generated if ffffggggllllVVVViiiieeeewwwwppppoooorrrrtttt is executed between the
  52.      execution of ffffggggllllBBBBeeeeggggiiiinnnn and the corresponding execution of ffffggggllllEEEEnnnndddd.
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.                                                                         PPPPaaaaggggeeee 1111
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76. ffffggggllllVVVViiiieeeewwwwppppoooorrrrtttt((((3333GGGG))))                OOOOppppeeeennnnGGGGLLLL RRRReeeeffffeeeerrrreeeennnncccceeee                ffffggggllllVVVViiiieeeewwwwppppoooorrrrtttt((((3333GGGG))))
  77.  
  78.  
  79.  
  80. AAAASSSSSSSSOOOOCCCCIIIIAAAATTTTEEEEDDDD GGGGEEEETTTTSSSS
  81.      ffffggggllllGGGGeeeetttt with argument GGGGLLLL____VVVVIIIIEEEEWWWWPPPPOOOORRRRTTTT
  82.      ffffggggllllGGGGeeeetttt with argument GGGGLLLL____MMMMAAAAXXXX____VVVVIIIIEEEEWWWWPPPPOOOORRRRTTTT____DDDDIIIIMMMMSSSS
  83.  
  84.  
  85. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  86.      ffffggggllllDDDDeeeepppptttthhhhRRRRaaaannnnggggeeee
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.                                                                         PPPPaaaaggggeeee 2222
  136.  
  137.  
  138.  
  139.